package com.gzbsoft.sc.modules.sys.service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
public interface BaseService<T, ID> {
    List<T> list(T t);
    Page<T> page(T t, Pageable page);
    @Transactional(rollbackFor = Exception.class)
    T save(T t);
    @Transactional(rollbackFor = Exception.class)
    T update(T t);
    void deleteBatch(ID[] ids);
    void deleteById(ID menuId);
}
